package com.copa.module.system.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.copa.domain.PageVo;
import com.copa.domain.ResponseDto;
import com.copa.module.system.domain.entity.AdminLogEntity;
import com.copa.module.system.domain.entity.ConfigEntity;
import com.copa.module.system.domain.vo.ConfigListVo;
import com.copa.module.system.service.ConfigService;
import com.copa.module.system.service.LogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author copa
 * @createDate 2021-02-25 15:09
 * @function
 */
@RestController
@Api(tags = {"日志接口"})
public class LogController {

    @Autowired
    private LogService logService;

    @ApiOperation(value = "查看日志")
    @PostMapping("/log/list")
    public ResponseDto<IPage<AdminLogEntity>> list(@RequestBody PageVo pageVo) {
        return logService.list(pageVo);
    }
}
